package com.student.dong.service.impl;

import java.util.List;

import com.student.dong.vo.StudentVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.student.dong.mapper.AlgsStudentMapper;
import com.student.dong.domain.AlgsStudent;
import com.student.dong.service.IAlgsStudentService;

/**
 * (注册)学生信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-15
 */
@Service
public class AlgsStudentServiceImpl implements IAlgsStudentService 
{
    @Autowired
    private AlgsStudentMapper algsStudentMapper;

    /**
     * 查询(注册)学生信息
     * 
     * @param studentId (注册)学生信息主键
     * @return (注册)学生信息
     */
    @Override
    public AlgsStudent selectAlgsStudentByStudentId(Long studentId)
    {
        return algsStudentMapper.selectAlgsStudentByStudentId(studentId);
    }

    @Override
    public AlgsStudent selByStudentName(String studentName) {
        return algsStudentMapper.selByStudentName(studentName);
    }

    @Override
    public AlgsStudent selectByUserId(Long userId) {
        return algsStudentMapper.selectByUserId(userId);
    }


    @Override
    public List<StudentVo> selByType(StudentVo studentVo) {
        return algsStudentMapper.selAllByType(studentVo);
    }

    /**
     * 查询(注册)学生信息列表
     * 
     * @param algsStudent (注册)学生信息
     * @return (注册)学生信息
     */
    @Override
    public List<AlgsStudent> selectAlgsStudentList(AlgsStudent algsStudent)
    {
        return algsStudentMapper.selectAlgsStudentList(algsStudent);
    }

    /**
     * 新增(注册)学生信息
     * 
     * @param algsStudent (注册)学生信息
     * @return 结果
     */
    @Override
    public int insertAlgsStudent(AlgsStudent algsStudent)
    {

        return algsStudentMapper.insertAlgsStudent(algsStudent);
    }

    /**
     * 修改(注册)学生信息
     * 
     * @param algsStudent (注册)学生信息
     * @return 结果
     */
    @Override
    public int updateAlgsStudent(AlgsStudent algsStudent)
    {
        return algsStudentMapper.updateAlgsStudent(algsStudent);
    }

    /**
     * 批量删除(注册)学生信息
     * 
     * @param studentIds 需要删除的(注册)学生信息主键
     * @return 结果
     */
    @Override
    public int deleteAlgsStudentByStudentIds(Long[] studentIds)
    {
        return algsStudentMapper.deleteAlgsStudentByStudentIds(studentIds);
    }

    /**
     * 删除(注册)学生信息信息
     * 
     * @param studentId (注册)学生信息主键
     * @return 结果
     */
    @Override
    public int deleteAlgsStudentByStudentId(Long studentId)
    {
        return algsStudentMapper.deleteAlgsStudentByStudentId(studentId);
    }
}
